function unitsObject(){
	this.longDist = 0.62137;//km to miles
	this.shortDist = 3.28;//meters to feet
	this.speedUnit = 0.62137;//KPH to MPH
	this.velocityUnit = 2.237;//meters per sec to MPH
}

unitsObject.prototype.setUnits = function(selection){
	
	if (selection == 2) {
		this.longDist = 1;
		this.shortDist = 1;
		this.speedUnit = 1;
		this.velocityUnit = 3.6;//meters per sec to KPH
	}
	else {
		this.longDist = 0.62137;//km to miles
		this.shortDist = 3.28;//meters to feet
		this.speedUnit = 0.62137;//KPH to MPH
		this.velocityUnit = 2.237;//meters per sec to MPH
	}

}
